{% extends "base.html" %}

{% block header %}
<h1>Locomotive ({{object}})</h1>
{% endblock %}

{% block current_path %}
<p>Locomotives &rsaquo; {{object}}</p>
{% endblock %}

{% block menu %}
<ul>
    <li><a href="{% url locomotive_list %}">Back to locomotive list</a></li>
    <li><a href="{% url locomotive_journal object.id %}">Journal</a></li>
    <li><a href="">Entries</a></li>
</ul>
{% endblock %}

{% block content %}
    <table class="detail">
        <tr>
            <td class="property">Customer</td>
            <td class="value">{{ object.customer }}</td>
        </tr>
        <tr>
            <td class="property">Number</td>
            <td class="value">{{ object.loc_number }}</td>
        </tr>
        <tr>
            <td class="property">Section count</td>
            <td class="value">{{ object.section_count }}</td>
        </tr>
        <tr>
            <td class="property">Model</td>
            <td class="value">{{ object.model }}</td>
        </tr>
	<tr><td colspan="2"><a href="{% url locomotive_update object.id %}">Edit</a></td></tr>
    </table>
{% endblock %}